﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NextDart
{
	public class DartDetails
	{
		public string Journey { get; set; }
		public DateTime ETA { get; set; }
		public DateTime Scheduled { get; set; }
		public int DueIn { get; set; }
		public string CurrentLocation { get; set; }

		public string[] ToColumns()
		{
			string[] columns = new string[5];
			
			columns[0] = DueIn.ToString() + " minutes";
			columns[1] = string.Format("{0:HH:mm}", ETA);
			columns[2] = string.Format("{0:HH:mm}", Scheduled);
			columns[3] = Journey;
			columns[4] = CurrentLocation;

			return columns;
		}
	}
}
